package Z03JiHeKuangJia.ArrayListStudy.T04FanXing;

import java.util.ArrayList;
import java.util.List;

public class TestFanXing {}

class TestFanXing1{
    public static void main(String[] args) {
        List<Hero> genericheros = new ArrayList<>();
        List<Hero> genericheros1 = new ArrayList<>();
    }
}



class Hero{
    public String name;
    public float hp;
    public int damage;

    public Hero(){}
    public Hero(String name){
        this.name = name;
    }
    public String toString(){
        return name;
    }
}













class Item{
    String name;
    int price;

    public Item(){}

    public Item(String name){
        this.name = name;
    }

    public void effect(){
        System.out.println("物品使用效果");
    }
}